package com.atguigu.marketing.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 营销规则-渠道
 * </p>
 *
 * @author zhangchen
 * @since 2023-02-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="MarketingRuleChannel对象", description="营销规则-渠道")
public class MarketingRuleChannel implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "营销规则id")
    private Long marketingRuleId;

    @ApiModelProperty(value = "渠道类型  SMS 、 WX、APP")
    private String channelType;

    @ApiModelProperty(value = "渠道编码")
    private Long channelModelId;

    private Integer limitTimeNum;

    private String limitTimeUnit;



    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @TableField(exist = false)
    private MarketingRuleChannelModel marketingRuleChannelModel;

}
